import { DescItem } from '/@/components/Description/src/types';
import { TableImg } from '/@/components/Table';
export interface AreaList {
  city: string;
  cityEn: string;
  id: string;
}
export const schema: DescItem[] = [
  {
    field: 'name',
    label: '姓名',
  },
  {
    field: 'university',
    label: '学校',
  },
  {
    field: 'classs',
    label: '年级',
  },
  {
    field: 'major',
    label: '专业',
  },
  {
    field: 'email',
    label: '邮箱',
  },
  {
    field: 'phoneNumber',
    label: '电话号码',
  },
  {
    field: 'street',
    label: '详细地址',
  },
  {
    field: 'bigareaForm',
    label: '区域位置',
  },
  {
    field: 'annex',
    label: '附件',
    render: (curVal, data) => {
      const list = [data.annex];
      console.log(list, 'list');
      // return <TableImg size={120} simpleShow={true} imgList={list} />;
      if (!list[0] == '') {
        return (
          <div style=" overflow: hidden">
            <TableImg size={250} imgList={list} />
          </div>
        );
      }
    },
  },
  {
    field: 'cardNum',
    label: '留学生卡号',
  },
  {
    field: 'qrCode',
    label: '留学生卡二维码',
    render: (curVal, data) => {
      console.log(curVal, data);
      const list = [data.qrCode];
      // return <TableImg size={120} simpleShow={true} imgList={list} />;
      if (!list[0] == '') {
        return <TableImg size={250} imgList={list} />;
      }
    },
  },
];
